package com.ruoyi.lvlian.mapper;

import com.ruoyi.lvlian.vo.BusinessUserInfoVo;
import com.ruoyi.system.api.domain.SysDictData;
import com.ruoyi.system.api.model.SysDeptVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 业务人员跟车方Mapper接口
 *
 * @author ruoyi
 * @date 2024-06-06
 */
@Repository
public interface BusinessUserInfoMapper {


    BusinessUserInfoVo getBusinessUserByPhone(String phone);

    List<SysDeptVo> queryDeptListByUserId(Long userId);
    List<SysDeptVo> queryDeptListByUserPhone(String phone);

    List<SysDictData> queryDictlist(SysDictData dictData);

    int updateDeptIdForUser(@Param("userId") Long userId, @Param("deptId") Long deptId);
    public int updateUserAvatar(@Param("userName") String phonenumber, @Param("avatar") String avatar);
    public int updateUserName(@Param("phone") String phone, @Param("name") String name);
}
